// 中层 index, 用于 路由控制
// https://docs.angularjs.org/guide

import acView from "./accessing.mjs";
import clView from "./controllers.mjs";
import dbView from "./data-binding.mjs";
import filterCaseView from "./filter-case.mjs";
import svView from "./services.mjs";
import { defineIndexRouteView } from "@/routers/common-index.mjs";
import { combRouter } from "@/routers/tools.mjs";

/**
 * @type {DefineRoute[]}
 */
export const subRoutingCO = [
  combRouter(dbView, {
    name: "dg.co.db",
    url: "/db",
  }),
  combRouter(clView, {
    name: "dg.co.cl",
    url: "/cl",
  }),
  combRouter(acView, {
    name: "dg.co.ac",
    url: "/ac",
  }),
  combRouter(svView, {
    name: "dg.co.sv",
    url: "/sv",
  }),
  combRouter(filterCaseView, {
    name: "dg.co.fc",
    url: "/fc",
  }),
];

const coView = defineIndexRouteView(subRoutingCO);

export default coView;
